package 设计模式.q_访问者模式;

/**
 * 军队中的中士
 *
 * @author caihe
 * @date 2023/3/21 16:28
 */
public class Sergeant extends Unit {
    
    public Sergeant(Unit... children) {
        super(children);
    }
    @Override
    public void accept(UnitVisitor unitVisitor) {
        unitVisitor.visit(this);
        super.accept(unitVisitor);
    }
}
